"""
@Time : 2021/9/13 10:31 
@Author : 常雷
@File : t_4字符串反转.py 
@Software: PyCharm
"""
# 如何实现李符串的反转? 如name="abcde"请反转为name=“edcba'
"""
str[数]  索引
str[开始:结尾:步长]   切片(前闭后开)  
"""
# 字符串反转
name = "abcde"
name = name[::-1]
print(name)
